package com.desay.pangoo.itmt.repository;

import com.desay.pangoo.itmt.entity.TechNewsEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.desay.pangoo.itmt.entity.TechNewsFeedbackEntity;

import java.util.List;

/**
 * @author uidq1163
 */
@Repository
public interface TechNewsFeedbackRepository extends JpaSpecificationExecutor<TechNewsFeedbackEntity>,
		PagingAndSortingRepository<TechNewsFeedbackEntity, Long> {

	/**
	 * 根据parent查询
	 *
	 * @param parent
	 * @return
	 */
	List<TechNewsFeedbackEntity> findByParentIn(List<TechNewsEntity> parent);
}